<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
	<div class="form-group">
		<!-- 供应商 -->
		<label class="control-label col-xs-12 col-sm-1">{:__('Supplierid')}:</label>
		<div class="col-xs-12 col-sm-2">
			<input id="c-supplierid" min="0" class="form-control __select_supplier" readonly type="text" />
			<input type="hidden" name="row[supplierid]" id="supplierid" />
		</div>

		<label class="control-label col-xs-12 col-sm-1">{:__('Mobile')}:</label>
		<div class="col-xs-12 col-sm-2">
			<input id="c-mobile" min="0" class="form-control __select_supplier" readonly name="row[mobile]" type="text" />
		</div>

		<!-- 地址 -->
		<label class="control-label col-xs-12 col-sm-1">{:__('Region')}:</label>
		<div class="col-xs-12 col-sm-3">
			<div class="control-relative">
				<input id="c-Region" class="form-control __select_supplier" readonly type="text" />
			</div>
		</div>

		<!-- 商品数据 -->
		<input type="hidden" name="row[product]" id="product-data" />
	</div>

	<div class="form-group">
		<!-- 入库类型 -->
		<label class="control-label col-xs-12 col-sm-1">{:__('Type')}:</label>
		<div class="col-xs-12 col-sm-2">
			<select id="c-type" class="form-control selectpicker" name="row[type]">
				{foreach name="typeList" item="vo"}
          <option value="{$key}" {in name="key" value="1" }selected{/in}>{$vo}</option>
				{/foreach}
			</select>
		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-1">{:__('Remark')}:</label>
		<div class="col-xs-12 col-sm-8">
			<textarea id="c-remark" class="form-control" rows="5" name="row[remark]" cols="50"></textarea>
		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-1">
			<button type="button" class="btn btn-primary" id="add-product">添加商品</button>
		</label>
	</div>

	<div class="form-group">
		<table
			id="table"
			class="table table-striped table-bordered table-hover table-nowrap col-sm-10 control-label"></table>
	</div>

	<div class="form-group layer-footer">
		<label class="control-label col-xs-12 col-sm-2"></label>
		<div class="col-xs-12 col-sm-8">
			<button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
			<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
		</div>
	</div>
</form>
